<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Gerenciador de Colaboradores</title>
    </h:head>
    <h:body>
        <h1>Gerenciador de Colaborador</h1>
        <h:form id="form">
            <h:inputHidden value="#{colaboradorBean.colaborador.id}" />
            <p:growl id="msgs" showDetail="true" />
            <h:panelGrid columns="2" cellpadding="5">
                <p:outputLabel value="Nome" /> 
                <p:inputText value="#{colaboradorBean.colaborador.nome}" />
                <p:commandButton action="#{colaboradorBean.save}" value="Salvar" />

                <p:commandButton action="index" value="Voltar" />
            </h:panelGrid>
        </h:form>
    </h:body>
</html>
